// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.profile-detail {
  --gutter: @gutter-v2;
  background-color: hsl(var(--hsl-b5));
  padding: 10px var(--gutter);
  display: grid;
  gap: 10px;

  &:empty {
    display: none;
  }

  .profile-info + & {
    .inner-shadow-top();
  }

  @media @desktop {
    --gutter: @gutter-v2-desktop;
  }

  &__chart {
    height: 90px;
    position: relative;

    // only relevant for empty chart
    .center-content();
    display: flex;
    font-size: @font-size--normal;

    @media @desktop {
      margin: 0 -15px; // compensates chart internal margin. Sync with ProfileDetail.RankChart.
    }
  }

  &__chart-numbers {
    display: flex;
    gap: 10px;
    flex-direction: column;
    --align-items-desktop: flex-end;

    &--top {
      --align-items-desktop: flex-start;
    }

    @media @desktop {
      flex-direction: row;
      justify-content: space-between;
      align-items: var(--align-items-desktop);
    }
  }

  &__separator {
    --separator-size: 2px;
    background-color: hsl(var(--hsl-b6));
    height: var(--separator-size);
    width: 100%;

    @media @desktop {
      height: 100%;
      width: var(--separator-size);
    }
  }

  &__stats {
    display: grid;
    align-items: start;
    gap: 15px;

    @media @desktop {
      grid-template-columns: 1fr auto auto;
    }
  }

  &__values {
    display: flex;
    gap: 20px;

    &--grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }
  }
}
